﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XAMLdemo
{
    public class BusinessObject
    {
        public BusinessObject()
        {

        } 
        public string ThisWontBeAccessibleFromXaml; 

        protected string _string; 
        public string PropertyString
        {
            get
            {
                return _string; 
            }
            set
            {
                _string = value;
            } 
        }

        protected double _double; 
        public double PropertyDouble
        {
            get
            {
                return _double; 
            }
            set
            {
                _double = value; 
            }
        }

        protected NestedObject _nested; 
        public NestedObject NestedObject
        {
            get
            {
                return _nested; 
            }
            set
            {
                _nested = value; 
            } 
        }        
    }


    public class NestedObject
    {
        protected string _string; 

        public string PropertyNested
        {
            get
            {
                return _string;
            }
            set
            {
                _string = value;
            }
        }
    } 
}
